package cn.lili.modules.promotion.client;

import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.promotion.fallback.GreenFallback;
import cn.lili.modules.promotion.fallback.GreenProjectFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient(path = "${server.servlet.context-path}", name = ServiceConstant.PROMOTION_SERVICE, contextId = "green-project", fallback = GreenProjectFallback.class)
public interface GreenProjectClient {

    @PostMapping("/feign/promotion/greenProject/updateGreenProjectStatus")
    void updateGreenProjectStatus();
}
